package com.erp.statistics.order.mapper;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.erp.statistics.order.domain.bo.ErpChildOrderStatisticsBo;
import com.erp.statistics.order.domain.vo.ErpChildOrderStatisticsVo;
import com.erp.statistics.order.domain.vo.StatisticSummaryDataVo;
import com.ruoyi.common.core.mapper.BaseMapperPlus;
import com.ruoyi.statistics.api.domain.ErpChildOrderStatistics;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 子订单信息统计Mapper接口
 *
 * @author erp
 * @date 2023-07-19
 */
public interface ErpChildOrderStatisticsMapper extends BaseMapperPlus<ErpChildOrderStatisticsMapper, ErpChildOrderStatistics, ErpChildOrderStatisticsVo> {

    Page<ErpChildOrderStatisticsVo> getStaticsByCode(@Param("page") Page<ErpChildOrderStatistics> page, @Param("bo") ErpChildOrderStatisticsBo bo);

    StatisticSummaryDataVo getSummaryData(@Param("bo") List<ErpChildOrderStatisticsVo> bo);

    /**
     * 根据条件查询数据列表
     * @param lambdaQueryWrapper
     * @return
     */
    List<ErpChildOrderStatistics> getChildOrderStatisticsList(LambdaQueryWrapper<ErpChildOrderStatistics> lambdaQueryWrapper);
}
